Completed
Pull Request — dev/6.0.0 (#307)
by Rajan
12:17 queued 09:06
created

$(document).ready   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 14
rs 9.4285
c 2
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A 0 8 2
1
/**
2
 * Add select2 functionality..
3
 */
4
jQuery( document ).ready( function () {
5
	
6
	jQuery( '.sticky_force_delete' ).hide();
7
8
	jQuery("input[name='smbd_sticky_post_sticky_option']").change(function(){
9
		var sticky_option = jQuery("input[name='smbd_sticky_post_sticky_option']:checked").val();
10
		if( sticky_option == "show" ){
11
			jQuery( '.sticky_force_delete' ).show();
12
		}else{
13
			jQuery( '.sticky_force_delete' ).hide();
14
		}
15
	});
16
17
} );